package com.alennus.blog.rabbitMq.spring_rabbit.simple;

import com.alennus.blog.rabbitMq.spring_rabbit.config.RabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by pactera on 2018/9/25.
 */
@Component
public class Receive {

    @RabbitListener(queues = RabbitConfig.QUEUE_SIMPLE_HELLO_NAME)
    public void process(String hello){
        System.out.println("Receiver1  : " + hello);
    }
}
